import apirequest from '@/utils/apirequest'

// 获取库位分页信息
export const getLocation = params => apirequest.get('/location/pageDetail', { params })

// 修改库位
export const updateLocation = data => apirequest.put('/location', data)

// 获取库位信息
export const getKW = () => apirequest.get('/codeFactory/next/KW')

// 添加库位
export const addLocation = data => apirequest.post('/location', data)

// 查询库位
export const getLoca = id => apirequest.get(`/location/${id}`)
